@extends('layouts.ajax_master')
@section('content')
    <div class="space40">共有{{$stuff_number}}名组长</div>
			<table>
				<tr>
					<th>姓名</th>
					<th>编号</th>
					<th>电话</th>
					<th>Email</th>
					<th>教研组名称</th>
					<th>组内老师</th>
				</tr>
				@foreach($account as $user)
				<tr>
					<td>{{ $user->stuff_name}}</td>
					<td>{{ $user->stuff_code}}</td>
					<td>{{ $user->mobile}}</td>
					<td>{{ $user->mail}}</td>
					<td>@if(!empty($user->provost))
							{{ $user->provost->group_name}}
						@endif
					</td>
					<td style="text-align: left;">
						@if(!empty($user->provost))
						@foreach($user->provost->teacher_list as $v)
							{{$v->teacher_name}} &#44;
						@endforeach
						@endif
					</td>
				</tr>
				@endforeach
			</table>
    {{$i}}
@stop